<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
    <script src="vue/vue.js" charset="utf-8"></script>

</head>
<body>
<div id="box">
    <!--v-bind:src简写为:src-->
    <img v-bind:src="url" :width="w" :title="t">
    <hr>
    <img :src="url" >
</div>

<script >
    new Vue({
        el: '#box',
        data: {
            url:'https://www.baidu.com/img/bd_logo1.png',
            w:"150px",
            t:'这是一张美丽的图片'
        },
        methods: {

        }
    });

</script>
</body>
</html>